
AC_INIT(simpleimage, 0.0.1, asongala@gmail.com)
AM_INIT_AUTOMAKE(simpleimage, 0.0.1)
AC_CONFIG_HEADER([config.h])

AC_CANONICAL_HOST

AC_PROG_CC
AC_PROG_INSTALL

AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h])
AC_HEADER_SYS_WAIT

AC_ARG_ENABLE(debug,
	[AC_HELP_STRING([  --enable-debug], [Debugging (default=no)])],
	[with_debug=yes], [with_debug=no])

if test "x$with_debug" == "xyes" ; then
	CFLAGS="-ggdb -O0 -Wall"
else
	CFLAGS="-O2 -Wall"
fi

AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T

AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset])

AC_OUTPUT(
	Makefile \
	include/Makefile \
	src/Makefile
	)

